package org.tinygroup.bizframe.dao.inter.constant;

import org.tinygroup.bizframe.dao.inter.pojo.TsysRole;
import org.tinygroup.tinysqldsl.base.Column;
import org.tinygroup.tinysqldsl.base.Table;

/**
 * <!-- begin-user-doc --> 系统角色表 * <!-- end-user-doc -->
 */
public class TsysRoleTable extends Table {

	/**
	 * <!-- begin-user-doc --> <!-- end-user-doc -->
	 */
	public static final TsysRoleTable TSYS_ROLE_TABLE = new TsysRoleTable();

	/**
	 * <!-- begin-user-doc --> 角色id * <!-- end-user-doc -->
	 */
	public final Column ROLE_ID = new Column(this, "role_id");
	/**
	 * <!-- begin-user-doc --> 角色编号 * <!-- end-user-doc -->
	 */
	public final Column ROLE_CODE = new Column(this, "role_code");
	/**
	 * <!-- begin-user-doc --> 角色名称 * <!-- end-user-doc -->
	 */
	public final Column ROLE_NAME = new Column(this, "role_name");
	/**
	 * <!-- begin-user-doc --> 创建者 * <!-- end-user-doc -->
	 */
	public final Column CREATOR = new Column(this, "creator");
	/**
	 * <!-- begin-user-doc --> 备注 * <!-- end-user-doc -->
	 */
	public final Column REMARK = new Column(this, "remark");

	private static java.util.Map<String, String> mappings = new java.util.Hashtable<String, String>();

	public String getFieldName(String attrName) {
		return mappings.get(attrName);
	}

	public TsysRoleTable() {
		super("tsys_role");
	}

	public TsysRoleTable(String schemaName) {
		super(schemaName, "tsys_role");
	}

	public TsysRoleTable(String schemaName, String alias) {
		super(schemaName, "tsys_role", alias);
	}

	public TsysRoleTable(String schemaName, String alias, boolean withAs) {
		super(schemaName, "tsys_role", alias, withAs);
	}

	public boolean isAutoGeneratedKeys() {
		return true;
	}

	public Class<TsysRole> getPojoType() {
		return TsysRole.class;
	}

	static {
		mappings.put("roleId", "role_id");
		mappings.put("roleCode", "role_code");
		mappings.put("roleName", "role_name");
		mappings.put("creator", "creator");
		mappings.put("remark", "remark");

	}

}
